<script type="text/javascript">
$(function(){
	var cfg = {
		keyField: 'no',
		displayField: 'subject',
		multiSelect: false,
		width: 200,
		boxWidth: 200,
		maxHeight: 100, 
		cols : [{
			field: 'subject', width: 198
		}],
		loader: {
			url: '/mac/js/grid/data.php',
			params: { pageSize: 10 },
			autoLoad: true
		}
	};
	var cfg1 = $.extend({}, cfg);
	var cb1 = $('#combo1').mac('combo', cfg1);
	$('#get1').click(function(){
		alert(cb1.selected);
	});
	$('#set1').click(function(){
		cb1.select('2');
	});
});
</script>
<div id="combo1" class="combo"></div><br/>
&nbsp;&nbsp;<button id="get1">get1</button>&nbsp;<button id="set1">set1</button>